package MyFile;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;

public class demo2 {
    public static void main(String[] args) throws IOException {
        InputStream inputStream = new FileInputStream("D:\\software\\code\\2023_java\\2023_java_code\\code_24_4_18\\src\\Text.text");
        byte[] bytes = new byte[3];
        int n ;
        while ( (n = inputStream.read(bytes)) != -1){
            String s = new String(bytes,0,n);
            System.out.print(s);
        }
        inputStream.close();
    }
}
